package com.lzj.server.entity.video;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lzj.server.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;

@Schema(name = "Favorite", description = "收藏夹表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("favorite")
public class Favorite extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "收藏夹ID",hidden = true)
    private Long id;
    @TableField("user_id")
    @Schema(description = "所属用户ID")
    private Long userId;
    @TableField("name")
    @Schema(description = "收藏夹名称")
    private String name;
    @TableField("description")
    @Schema(description = "收藏夹描述")
    private String description;
    @TableField("is_default")
    @Schema(description = "是否为默认收藏夹（1是，0否）")
    private Integer isDefault;

}

